@import "../../base/_base";

$f12: 12px;
$item-height: 26px;
/*搜索区域样式*/
.search-area {
  border: 1px solid $brand-border;
  background-color: #fff;
  flex-shrink: 0;
}

.search-area .search-content {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 20px 20px 10px;
  .search-item {
    width: 300px;
    height: $item-height;
    line-height: $item-height;
    margin-bottom: 10px;
    display: flex;
    > span {
      display: inline-block;
      width: $label-width;
      text-align: right;
      flex-shrink: 0;
    }
  }
}

.search-content .search-item input, .modal-in, select {
  height: $item-height;
  width: 128px;
  line-height: $item-height;
  border: 1px solid #D8D8D8;
  padding-left: 10px;
  margin-left: 3px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 12px;
}

.search-content .search-item .chooseDate {
  width: 128px;
}

.search-content .search-item .modal-box {
  display: flex;
  flex-direction: column;
}

.search-content .search-item .modal-sel {
  width: 128px;
  background: #fff;
  z-index: 999;
  text-align: center;
  padding-bottom: 10px;
  border: 1px solid #D8D8D8;
  box-shadow: 0 3px 4px 0 #EFEEEA;
  margin-left: 3px;
  cursor: pointer;
}

.search-content .search-item .modal-sel li {
  width: 100%;
  height: $item-height;
  text-align: center;
}

.search-content .search-item .modal-sel li:hover {
  background: $color;
  color: #fff;
}

.search-content .search-item .modal-sel.choose {
  display: block;
}

.search-item .modal-sel li.choose {
  background: $color;
  color: #fff;
}

.search-operate, .operate-bar {
  display: flex;
  justify-content: flex-end;
  padding-right: 20px;
  padding-bottom: 10px;
  margin-top: 20px;
}

.search-btn {
  display: block;
  color: #fff;
  background: $color;
  width: 95px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 5px;
  border: 1px solid $color;
  cursor: pointer;
  margin-left: 20px;
  box-sizing: border-box;
}

/* 选择栏 */
.search-item .el-select .el-input__inner:focus {
  border-color: $color
}

.search-item .el-select .el-input.is-focus .el-input__inner {
  border-color: $color

}

.search-item .el-select-dropdown__item.selected {
  color: $color

}

/* 选择栏样式 */
.search-item .el-select-dropdown__list {
  display: flex;
  flex-direction: column
}

/* 默认搜索框样式修改 */
.search-item .el-input {
  width: 128px

}

.search-item .el-input__inner {
  width: 100%;
  height: $item-height;
  line-height: $item-height;
  border: 1px solid #D8D8D8;
  padding-left: 10px;
  margin-left: 3px;
  cursor: pointer;
  -webkit-appearance: none;
  border-radius: 0;
  font-size: inherit;
  -webkit-transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  transition: border-color .2s cubic-bezier(.645, .045, .355, 1);

}

/* 时间搜索框修改 */
.search-time {
  .el-date-editor {
    width: 128px !important;
  }
  input.el-input__inner {
    padding-left: 25px !important;
    padding-right: 0;
  }
  span {
    .el-input__icon {
      line-height: 28px;
    }
  }
}

.el-input__inner:focus {
  border-color: $color !important;
}

.el-select-dropdown__list {
  display: flex;
  flex-direction: column;
}

// 搜索区域下的选择区域
.search-area {
  .search-cascader {
    margin-top: 0;
    input {
      border-radius: 5px;
      margin-left: 2px;
      position: absolute;
      left: 0;
      top: 0;
      height: 100%;
    }
    .el-cascader {
      flex-grow: 1;
      height: 100%;
      .el-input--suffix {
        height: 26px;
        font-size: 12px;
        position: relative;
        span {
          display: flex;
          align-items: center;
        }
      }
      .el-cascader__label {
        line-height: 26px;
        font-size: 12px;
      }
    }

  }
}

.search-footer {
  padding-bottom: 10px;
  justify-content: flex-end;
  display: flex;
  padding-right: 30px;
}

